; Music of Hammer Boy 2 (1991) (Dinamic)
; Ripped by Megachur the 17/04/2009

	write "HAMMERB2.BIN"

music_date_rip	equ &1149
music_adr	equ &9ac7
first_theme	equ 0
last_theme	equ 1	; 0 -> 1

	read "music_header_v1_0.asm"

.l9ac7
	dw l9acb,l9b27
.l9acb
	db #48,#00,#56,#00,#7a,#00,#80,#81
	db #82,#80,#84,#85,#80,#86,#87,#80
	db #88,#89,#80,#84,#85,#80,#86,#87
	db #8a,#88,#8b,#8d,#84,#8e,#8f,#86
	db #90,#91,#88,#92,#8d,#84,#8e,#8f
	db #93,#90,#95,#88,#96,#98,#84,#99
	db #9a,#86,#9b,#9d,#88,#9e,#98,#84
	db #99,#9a,#86,#9b,#9d,#88,#a1,#98
	db #84,#a3,#9a,#86,#a5,#9d,#88,#a7
	db #98,#84,#a3,#9a,#86,#a5,#83,#0f
	db #8c,#0f,#94,#97,#9c,#9f,#a0,#a2
.l9b27 equ $ + 4
	db #a4,#a6,#a8,#a9,#90,#00,#aa,#00
	db #f2,#00,#80,#aa,#ab,#80,#ac,#80
	db #80,#ad,#ae,#80,#b0,#b1,#80,#b2
	db #b3,#80,#ac,#80,#80,#ad,#ae,#80
	db #b0,#b1,#b5,#b2,#b3,#b8,#ac,#80
	db #b9,#ad,#ae,#bb,#b0,#b1,#80,#b2
	db #b3,#80,#ac,#bd,#80,#ad,#be,#80
	db #b0,#b1,#c0,#b2,#b3,#b8,#ac,#80
.l9b69 equ $ + 6
	db #b9,#ad,#ae,#bb,#b0,#b1,#c4,#b2
	db #b3,#c5,#ac,#80,#c7,#ad,#ae,#c8
	db #b0,#b1,#c9,#b2,#b3,#c5,#ac,#80
	db #c7,#ad,#ae,#c8,#b0,#b1,#cb,#b2
	db #80,#80,#ac,#80,#cc,#ad,#80,#80
	db #b0,#80,#ce,#b2,#b3,#d0,#ac,#80
	db #d2,#ad,#ae,#2f,#b0,#b1,#d4,#b2
	db #b3,#d6,#ac,#80,#d7,#ad,#ae,#d9
	db #b0,#b1,#db,#b2,#b3,#d0,#ac,#80
	db #d2,#ad,#ae,#2f,#b0,#b1,#d4,#b2
	db #b3,#d6,#ac,#80,#d7,#ad,#ae,#d9
	db #b0,#b1,#af,#b4,#b6,#b7,#ba,#bc
	db #bf,#c1,#c2,#c3,#c6,#0f,#ca,#cd
	db #cf,#d1,#d3,#d5,#d8,#da,#dc,#dd
.l9bd5 equ $ + 2
	db #de,#df,#e0,#e1
	dw l9c17,l9c34,l9c45,l9c56
	dw l9c73,l9c90,l9cb1,l9cc6
	dw l9cdb,l9cf0,l9cfd,l9d0c
	dw l9d1b,l9d2a,l9d4b,l9d68
	dw l9d8d,l9db6,l9db6,l9de9
	dw l9e1c,l9e3b,l9e5c,l9e77
	dw l9e9c,l9edf,l9f08,l9f2d
	dw l9f42,l9f42,l9fbf,l9fe0
.l9c17
	dw l9f0e,l9d69,l9b69,#9a69
	db #68,#96,#67,#98,#67,#9b,#66,#9f
	db #66,#9b,#65,#99,#65,#96,#64,#92
.l9c34 equ $ + 5
	db #65,#8a,#63,#82,#63,#08,#e0,#fe
	db #e0,#fe,#e0,#fc,#e0,#fa,#e0,#f9
.l9c45 equ $ + 6
	db #e0,#f9,#e0,#f8,#e0,#f8,#08,#e5
	db #fe,#e5,#fe,#e5,#fc,#e5,#fa,#e5
.l9c56 equ $ + 7
	db #f9,#e5,#f9,#e5,#f8,#e5,#f8,#0e
	db #9f,#6f,#9d,#6f,#9b,#6f,#9a,#6e
	db #96,#6d,#98,#6d,#9b,#6c,#9f,#6c
	db #9b,#6b,#99,#6b,#96,#6a,#92,#6a
.l9c73 equ $ + 4
	db #8a,#69,#82,#69,#0e,#80,#6f,#80
	db #6f,#80,#6f,#80,#6f,#80,#6d,#80
	db #6d,#80,#6b,#80,#6b,#80,#6a,#80
	db #6a,#80,#69,#80,#69,#80,#68,#80
.l9c90 equ $ + 1
	db #67,#90,#1e,#f0,#1f,#e0,#20,#d0
	db #21,#c0,#22,#b0,#23,#b0,#24,#a0
	db #25,#a0,#26,#90,#27,#90,#28,#80
	db #29,#80,#2a,#70,#2b,#70,#2c,#60
.l9cb1 equ $ + 2
	db #2d,#60,#8a,#6b,#f3,#be,#f3,#83
	db #f4,#e5,#f4,#61,#f5,#bd,#f5,#53
.l9cc6 equ $ + 7
	db #f6,#dc,#e6,#18,#d7,#b0,#c7,#8a
	db #00,#f2,#8b,#f2,#2d,#f3,#c5,#f3
	db #11,#f4,#7f,#f4,#3f,#f5,#83,#e5
.l9cdb equ $ + 4
	db #05,#d6,#55,#c6,#8a,#61,#f1,#c6
	db #f1,#7b,#f2,#e7,#f2,#5f,#f3,#af
	db #f3,#81,#f4,#db,#e4,#3f,#d5,#a3
.l9cf0 equ $ + 1
	db #c5,#86,#32,#d0,#8a,#d0,#33,#d0
.l9cfd equ $ + 6
	db #8b,#d0,#32,#d0,#8a,#d0,#07,#90
	db #bf,#90,#bf,#90,#bf,#90,#bd,#90
.l9d0c equ $ + 5
	db #b9,#90,#b5,#90,#b1,#07,#90,#1f
	db #90,#1f,#90,#1f,#90,#1e,#90,#1a
.l9d1b equ $ + 4
	db #90,#15,#90,#12,#07,#50,#df,#50
	db #df,#50,#df,#50,#de,#50,#da,#50
.l9d2a equ $ + 3
	db #d5,#50,#d2,#90,#3c,#f0,#3e,#e0
	db #40,#d0,#42,#c0,#44,#b0,#46,#b0
	db #48,#a0,#4a,#a0,#4c,#90,#4e,#90
	db #50,#80,#52,#80,#54,#70,#56,#70
.l9d4b equ $ + 4
	db #58,#60,#5a,#60,#0e,#9f,#6b,#9d
	db #6b,#9b,#6b,#9a,#6a,#96,#69,#98
	db #69,#9b,#68,#9f,#68,#9b,#67,#99
	db #67,#96,#66,#92,#67,#8a,#65,#82
.l9d69 equ $ + 2
.l9d68 equ $ + 1
	db #66,#12,#5f,#8a,#5d,#7b,#5b,#6c
	db #59,#5d,#57,#4e,#55,#3f,#53,#2e
	db #51,#1e,#4f,#0d,#2d,#fd,#2b,#ed
	db #29,#dc,#27,#cc,#25,#bb,#23,#ab
.l9d8d equ $ + 6
	db #21,#9a,#21,#89,#21,#78,#14,#3f
	db #2f,#3f,#3f,#3f,#4e,#3f,#5e,#3f
	db #6d,#3f,#7c,#3f,#8d,#3f,#9c,#3f
	db #ab,#3f,#bc,#3f,#cb,#3f,#da,#3f
	db #e9,#3f,#fa,#5f,#09,#3f,#b8,#3f
.l9db6 equ $ + 7
	db #c9,#3f,#d8,#3f,#e7,#3f,#f8,#19
	db #ff,#fe,#f9,#fe,#f3,#ff,#fb,#ff
	db #ff,#ff,#f9,#fe,#f1,#ff,#e7,#fe
	db #ef,#fd,#f8,#fe,#ff,#fd,#ff,#fc
	db #f7,#fb,#f0,#fc,#e7,#fb,#f2,#fa
	db #fa,#fb,#fe,#fa,#fe,#fb,#fe,#fa
	db #fe,#fb,#fe,#fa,#fe,#f9,#fe,#f8
.l9de9 equ $ + 2
	db #fe,#f8,#19,#ff,#fe,#f9,#fe,#f3
	db #ff,#fb,#ff,#ff,#ff,#f9,#fe,#f1
	db #ff,#e7,#fe,#ef,#fd,#f8,#fe,#ff
	db #fd,#ff,#fc,#f7,#fb,#f0,#fc,#e7
	db #fb,#f2,#fa,#fa,#fb,#fe,#fa,#fe
	db #fb,#fe,#fa,#fe,#fb,#fe,#fa,#fe
.l9e1c equ $ + 5
	db #f9,#fe,#f8,#fe,#f8,#0f,#3a,#2c
	db #3a,#3b,#3a,#4b,#3a,#5a,#3a,#6a
	db #3a,#79,#3a,#8a,#3a,#99,#3a,#a8
	db #3a,#b9,#3a,#c8,#3a,#d7,#3a,#e6
.l9e3b equ $ + 4
	db #3a,#f7,#5a,#06,#90,#3c,#f0,#3e
	db #e0,#40,#d0,#42,#c0,#44,#b0,#46
	db #b0,#48,#a0,#4a,#a0,#4c,#90,#4e
	db #90,#50,#80,#52,#80,#54,#70,#56
.l9e5c equ $ + 5
	db #70,#58,#60,#5a,#60,#0d,#59,#39
	db #57,#2a,#55,#1b,#53,#0b,#31,#fc
	db #2f,#ec,#2d,#dc,#2b,#cc,#29,#bb
	db #27,#ab,#25,#9a,#23,#8a,#21,#79
.l9e77
	db #12,#21,#78,#21,#89,#21,#9a,#23
	db #ab,#25,#bc,#27,#cc,#29,#dd,#2b
	db #ed,#2d,#fd,#4f,#0e,#51,#1e,#53
	db #2f,#55,#3e,#57,#4d,#59,#5c,#5b
.l9e9c equ $ + 5
	db #6b,#5d,#7a,#5f,#89,#21,#e1,#ff
	db #e1,#ff,#e4,#ff,#e7,#ff,#ea,#fe
	db #ed,#fe,#f0,#fe,#ed,#fe,#ea,#fd
	db #e7,#fd,#e4,#fd,#e3,#fc,#e1,#fc
	db #e3,#fb,#e7,#fb,#ea,#fa,#ed,#fa
	db #f0,#f9,#ed,#f9,#ea,#f8,#e7,#f8
	db #e4,#f8,#e1,#f8,#e4,#f7,#e7,#f7
	db #ea,#f7,#ed,#f7,#f0,#f6,#ed,#f6
	db #ea,#f6,#e7,#f6,#e4,#f5,#e1,#f5
.l9edf
	db #94,#64,#b0,#c8,#c0,#96,#d0,#2c
	db #f1,#64,#e0,#c8,#d0,#96,#c0,#2c
	db #b1,#64,#a0,#c8,#a0,#96,#90,#2c
	db #91,#64,#80,#c8,#80,#96,#80,#2c
	db #71,#64,#70,#c8,#70,#96,#60,#2c
.l9f0e equ $ + 7
.l9f08 equ $ + 1
	db #61,#12,#5f,#8a,#5d,#7b,#5b,#6c
	db #59,#5d,#57,#4e,#55,#3f,#53,#2e
	db #51,#1e,#4f,#0d,#2d,#fd,#2b,#ed
	db #29,#dc,#27,#cc,#25,#bb,#23,#ab
.l9f2d equ $ + 6
	db #21,#9a,#21,#89,#21,#78,#8a,#1e
	db #e0,#1f,#d0,#20,#c0,#21,#b0,#22
	db #a0,#23,#a0,#24,#90,#25,#90,#26
.l9f42 equ $ + 3
	db #80,#27,#80,#be,#78,#f5,#bc,#f2
	db #14,#f5,#8a,#f2,#b0,#f4,#58,#f2
	db #4c,#f4,#26,#f2,#e8,#f3,#f4,#f1
	db #84,#f3,#c2,#f1,#20,#f3,#90,#f1
	db #bc,#f2,#5e,#f1,#58,#f2,#2c,#f1
	db #f4,#f1,#fa,#f0,#90,#f1,#c8,#f0
	db #2c,#f1,#96,#f0,#c8,#f0,#64,#f0
	db #64,#f0,#32,#f0,#e8,#b3,#f4,#b1
	db #84,#b3,#c2,#b1,#20,#b3,#90,#b1
	db #bc,#b2,#5e,#b1,#58,#b2,#2c,#b1
	db #f4,#b1,#fa,#b0,#90,#b1,#c8,#b0
	db #2c,#b1,#96,#b0,#c8,#b0,#64,#b0
	db #64,#b0,#20,#93,#90,#91,#bc,#92
	db #5e,#91,#58,#92,#2c,#91,#f4,#91
	db #fa,#80,#90,#81,#c8,#80,#2c,#81
	db #96,#70,#c8,#70,#64,#70,#64,#70
.l9fbf
	db #10,#ff,#f8,#fd,#f9,#fb,#fa,#f9
	db #fb,#f7,#fc,#f5,#fd,#f3,#fc,#f1
	db #fc,#ef,#fb,#ed,#fb,#eb,#fb,#e9
	db #fa,#e7,#fa,#e5,#f9,#e3,#f9,#e1
.l9fe0 equ $ + 1
	db #f8,#9b,#b8,#db,#dc,#d5,#b8,#db
	db #dc,#d5,#54,#db,#aa,#d5,#f0,#da
	db #78,#d5,#8c,#ca,#46,#c5,#28,#ca
	db #14,#c5,#c4,#c9,#e2,#b4,#60,#b9
	db #b0,#b4,#b8,#bb,#54,#bb,#aa,#a5
	db #f0,#aa,#78,#a5,#8c,#aa,#46,#95
	db #28,#9a,#14,#95,#c4,#89,#e2,#84
.la017
	db #0f,#0f,#0e,#0d,#0c,#0c,#0b,#0a
	db #0c,#0b,#0a,#09,#08,#08,#07,#06
	db #0a,#09,#08,#07,#06,#06,#05,#04
	db #09,#0a,#0c,#0c,#0c,#0a,#0a,#09
	db #0d,#0c,#0b,#0a,#0a,#09,#08,#07
	db #0b,#0c,#0e,#0e,#0e,#0c,#0c,#0b
	db #08,#09,#0b,#0b,#0b,#09,#09,#08
	db #0f,#0f,#0f,#0e,#0d,#0c,#0b,#0a
	db #07,#06,#05,#04,#04,#03,#03,#02
	db #0e,#0e,#0d,#0b,#0b,#09,#07,#07
.la067
	db #00,#00,#00,#00,#00,#0f,#00,#00
	db #0c,#02,#04,#08,#10,#20,#00,#00
	db #f8,#00,#00,#08,#00,#f8,#08,#00
	db #00,#08,#10,#20,#20,#10,#08,#00
	db #18,#fe,#fc,#f8,#00,#f8,#fc,#fe
	db #18,#f4,#f4,#0c,#0c,#f4,#f4,#0c
	db #0c,#f4,#f4,#0c,#f4,#0c,#0c,#f4
	db #00,#0c,#0c,#0c,#00,#00,#0c,#f4
	db #0c,#01,#01,#ff,#ff,#ff,#01,#00
	db #30,#f4,#f4,#00,#00,#01,#ff,#ff
.la0b7
	db #ce,#5d,#5a,#22,#cd,#a2,#ff,#ff
	db #ff,#d1,#07,#d0,#54,#0a,#40,#43
	db #fa,#7f,#c0,#04,#10,#40,#0f,#ff
	db #44,#04,#00,#00,#00,#00,#fd,#0a
	db #7f,#01,#0a,#7f,#fd,#04,#00,#41
	db #00,#3f,#22,#00,#00,#00,#00,#00
	db #ff,#ff,#ff,#6d,#07,#d0,#6c,#0a
	db #40,#43,#fa,#7f,#6c,#04,#10,#40
	db #0f,#ff,#fd,#0a,#7f,#09,#0a,#7f
	db #ff,#ff,#ff,#55,#07,#d0,#4c,#0a
	db #40,#43,#fa,#7f,#54,#04,#10,#40
	db #0f,#ff,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#40,#54,#72
	db #47,#2c,#53,#43,#4c,#0a,#40,#41
	db #0a,#7f,#38,#23,#43,#24,#50,#89
	db #fc,#0a,#7f,#01,#0a,#7f,#3c,#33
	db #43,#2c,#53,#43,#6c,#0a,#40,#40
	db #0a,#7f,#24,#72,#47,#2c,#53,#43
	db #00,#00,#00,#00,#00,#36,#49,#04
	db #00,#05,#07,#d0,#4d,#0a,#50,#40
	db #0a,#7f,#55,#04,#00,#34,#03,#90
	db #10,#88,#10,#22,#62,#0c,#03,#f7
	db #10,#7d,#07,#90,#00,#04,#00,#00
	db #00,#00,#c6,#81,#88,#62,#d8,#49
	db #55,#04,#80,#05,#07,#50,#51,#04
	db #00,#0c,#02,#50,#88,#90,#89,#88
	db #33,#1a,#00,#06,#50,#49,#04,#90
	db #06,#21,#89,#1d,#9a,#22,#45,#04
	db #00,#35,#07,#90,#4d,#0a,#7f,#6d
	db #0a,#7f,#d1,#04,#00,#05,#07,#d0
	db #24,#22,#04,#88,#28,#00,#01,#00
	db #3f,#ff,#ff,#ff,#54,#0a,#7f,#01
	db #0a,#7f,#02,#10,#88,#10,#88,#12
	db #51,#04,#00,#39,#07,#90,#6d,#0a
	db #7f,#5d,#0a,#7f,#55,#04,#00,#09
	db #07,#90,#41,#04,#10,#49,#04,#90
	db #64,#0a,#7f,#09,#0a,#7f,#03,#ff
	db #ff,#ff,#ff,#ff,#21,#22,#62,#62
	db #18,#90,#88,#10,#88,#12,#20,#a0
	db #00,#08,#42,#20,#42,#20,#48,#84
	db #89,#89,#88,#62,#48,#33,#43,#38
	db #23,#43,#46,#21,#22,#18,#8a,#33
	db #24,#72,#47,#9c,#89,#61,#9c,#30
	db #8e,#0c,#d0,#8e,#21,#38,#84,#88
	db #62,#48,#34,#30,#8e,#14,#b0,#8e
	db #98,#98,#86,#24,#88,#48,#08,#33
	db #43,#38,#23,#43,#86,#22,#8c,#c8
	db #4e,#21,#22,#18,#92,#26,#26,#21
	db #44,#72,#47,#2c,#53,#43,#ff,#fa
	db #7f,#ff,#fa,#7f,#c4,#04,#10,#40
	db #0f,#ff,#8b,#61,#f3,#68,#80,#00
	db #38,#72,#47,#2c,#53,#43,#4d,#0a
	db #40,#43,#fa,#7f,#00,#02,#00,#0a
	db #08,#00,#fd,#0a,#7f,#01,#0a,#40
	db #6d,#0a,#40,#01,#0a,#7f,#88,#00
	db #0a,#20,#08,#a9,#fd,#0a,#50,#49
	db #0a,#7f,#00,#01,#ff,#ff,#ff,#ff
	db #33,#9b,#34,#b6,#18,#a2,#ff,#60
	db #8e,#43,#ff,#d0,#cd,#05,#eb,#25
	db #04,#10,#cd,#04,#00,#30,#20,#90
	db #08,#e4,#3f,#40,#e0,#82,#fe,#b4
	db #02,#39,#04,#ab,#40,#03,#02,#08
	db #e0,#81,#08,#81,#02,#21,#08,#84
	db #41,#e3,#90,#00,#0f,#ff,#01,#06
	db #50,#02,#bf,#ff,#41,#f3,#90,#43
	db #f6,#50,#08,#82,#89,#22,#01,#00
	db #fd,#20,#8e,#43,#ff,#d0,#55,#05
	db #eb,#25,#04,#10,#c1,#04,#00,#30
	db #20,#90,#88,#10,#22,#10,#88,#40
	db #41,#f3,#90,#03,#f6,#50,#88,#02
	db #40,#21,#08,#82,#6d,#04,#10,#ff
	db #f4,#10,#82,#42,#10,#88,#a0,#92
	db #41,#0f,#ff,#41,#04,#12,#12,#22
	db #48,#48,#82,#42,#41,#06,#50,#41
	db #04,#10,#41,#f3,#90,#03,#ff,#ff
	db #10,#8b,#34,#28,#d9,#02,#55,#04
	db #10,#ff,#f4,#10,#49,#04,#00,#30
	db #20,#90,#10,#88,#28,#24,#21,#08
	db #8a,#09,#21,#22,#24,#84,#88,#24
	db #21,#08,#b3,#43,#08,#33,#62,#60
	db #88,#00,#cc,#04,#00,#74,#10,#80
	db #40,#07,#41,#08,#e0,#82,#41,#e3
	db #80,#01,#00,#00,#01,#06,#50,#02
	db #bf,#eb,#00,#00,#00,#00,#36,#40
	db #84,#22,#0a,#09,#08,#42,#22,#82
	db #48,#48,#89,#21,#22,#09,#08,#42
	db #2c,#d0,#c2,#33,#42,#48,#48,#62
	db #55,#04,#1f,#04,#20,#90,#49,#04
	db #1e,#08,#10,#90,#22,#92,#40,#00
	db #00,#00,#44,#f4,#11,#3d,#07,#8e
	db #48,#e4,#12,#39,#07,#8f,#00,#00
	db #00,#02,#18,#62,#41,#f0,#10,#78
	db #24,#10,#41,#e0,#10,#78,#24,#10
	db #8a,#42,#48,#48,#62,#22,#45,#04
	db #1f,#04,#20,#90,#92,#40,#00,#00
	db #00,#00,#00,#00,#02,#18,#62,#88
	db #ff,#ff,#ff,#ff,#ff,#ff,#cd,#00
	db #2c,#fd,#b1,#50,#dc,#f0,#42,#38
	db #20,#50,#33,#97,#34,#88,#22,#00
	db #02,#cf,#db,#0d,#00,#2c,#01,#04
	db #14,#39,#07,#8f,#fd,#d1,#50,#02
	db #cf,#ff,#41,#e0,#d0,#7c,#e4,#00
	db #41,#00,#2c,#fd,#b1,#50,#40,#f0
	db #42,#38,#20,#50,#dc,#20,#4f,#41
	db #e0,#02,#4c,#20,#8e,#41,#e0,#02
	db #00,#07,#34,#02,#20,#00,#04,#f4
	db #1e,#14,#20,#4f,#08,#e4,#1e,#14
	db #20,#8e,#41,#e3,#90,#7c,#e4,#00
	db #41,#e3,#d0,#78,#e4,#00,#40,#20
	db #4f,#41,#e0,#02,#40,#20,#8e,#41
	db #e0,#02,#fd,#d1,#50,#02,#cf,#ec
	db #00,#00,#00,#00,#00,#09,#ff,#ff
	db #ff,#ff,#fc,#c0,#75,#04,#cf,#41
	db #33,#90,#80,#03,#a8,#23,#10,#00
	db #40,#04,#00,#48,#04,#00,#7c,#e4
	db #00,#55,#00,#10,#40,#04,#40,#40
	db #04,#00,#40,#07,#90,#7c,#e4,#00
	db #98,#88,#2a,#02,#62,#20,#ff,#ff
	db #ff,#ff,#f7,#40,#41,#04,#cf,#41
	db #33,#90,#00,#02,#a0,#8c,#40,#02
	db #62,#20,#a8,#09,#88,#82,#4c,#00
	db #10,#00,#00,#10,#a2,#62,#a2,#28
	db #d0,#a8,#00,#00,#00,#74,#00,#10
	db #9a,#68,#88,#aa,#a8,#9a,#01,#05
	db #c0,#40,#04,#00,#68,#a2,#2a,#26
	db #2a,#22,#70,#00,#10,#00,#00,#10
	db #8d,#0a,#89,#a6,#88,#8a,#aa,#89
	db #a6,#8a,#20,#07,#41,#0a,#69,#af
	db #fa,#50,#ff,#ff,#d0,#ff,#ff,#ff
	db #42,#94,#10,#ad,#34,#29,#49,#0a
	db #69,#af,#fa,#50,#ff,#ff,#c5,#ff
	db #ff,#ff,#ce,#62,#ce,#40,#00,#00
	db #42,#94,#10,#ad,#e4,#29,#fc,#0f
	db #ff,#ff,#ff,#ff,#75,#0a,#69,#af
	db #fa,#50,#ff,#ff,#cb,#ff,#ff,#ff
	db #00,#00,#00,#00,#01,#d4,#dd,#04
	db #3f,#5d,#04,#3f,#48,#8a,#21,#8a
	db #82,#12,#2a,#08,#48,#a8,#21,#22
	db #41,#04,#1f,#41,#07,#d0,#6d,#00
	db #10,#ff,#ff,#ff,#48,#8a,#02,#12
	db #22,#88,#ff,#f5,#50,#41,#e4,#10
	db #48,#8a,#00,#02,#60,#88,#ff,#fc
	db #c0,#01,#00,#00,#40,#00,#19,#ff
	db #ff,#ff,#28,#29,#00,#08,#48,#8a
	db #75,#04,#3f,#5d,#04,#3f,#21,#8a
	db #82,#12,#2a,#08,#48,#a8,#21,#22
	db #48,#8a,#02,#12,#22,#88,#48,#8a
	db #c0,#00,#00,#01,#00,#00,#5c,#04
	db #00,#70,#04,#00,#39,#82,#20,#00
	db #00,#00,#48,#00,#00,#40,#00,#00
	db #78,#00,#00,#40,#00,#00,#74,#00
	db #00,#01,#00,#00,#00,#00,#02,#72
	db #12,#29,#c1,#04,#3f,#41,#04,#3f
	db #bf,#ff,#ff,#ff,#fb,#ff,#0a,#00
	db #00,#00,#03,#34,#41,#04,#3f,#41
	db #04,#81,#22,#28,#92,#20,#0a,#24
	db #41,#04,#10,#48,#04,#12,#22,#00
	db #00,#a0,#92,#20,#41,#06,#50,#41
	db #04,#81,#00,#a2,#42,#20,#00,#00
	db #65,#04,#3f,#5d,#07,#0f,#28,#92
	db #20,#0a,#24,#22,#41,#07,#90,#48
	db #14,#10,#41,#04,#10,#7d,#07,#83
	db #00,#00,#a0,#92,#20,#00,#41,#04
	db #90,#75,#04,#50,#a2,#42,#20,#00
	db #00,#28,#75,#04,#3f,#41,#04,#81
	db #92,#20,#0a,#24,#22,#00,#00,#a0
	db #92,#20,#00,#a2,#42,#20,#00,#00
	db #28,#92,#20,#0a,#24,#22,#00,#00
	db #a0,#92,#20,#00,#a2,#42,#20,#00
.la606 equ $ + 7
.la605 equ $ + 6
.la604 equ $ + 5
.la603 equ $ + 4
	db #00,#1f,#ff,#ff,#00,#07,#08,#ff
.la609 equ $ + 2
.la608 equ $ + 1
.la607
	db #ff,#00,#00
;
.play_music
;
	ld hl,laa67
	ld de,laa68
	ld bc,#000d
	ld (hl),#00
	ldir
	ld a,#38
	ld (laa6e),a
	call la6f3
	call la67a
	ld hl,laa74
	ld b,#0e
.la627
	push bc
	ld a,b
	dec a
	ld c,(hl)
	dec hl
	ld b,#f4
	out (c),a
	ld b,#f6
	in a,(c)
	or #c0
	out (c),a
	and #3f
	out (c),a
	ld b,#f4
	out (c),c
	ld b,#f6
	ld c,a
	or #80
	out (c),a
	out (c),c
	pop bc
	djnz la627
	ret
.la64d ; real init music
	call la667
	ld a,c
	ld (la608),a
	ld a,#ff
	ld (la609),a
	ld (la603),a
.la65c
	ld a,(la609)
	inc a
	defs 2,0 ;jr z,la65c
	ld a,b
	ld (la608),a
	ret
.la667
	xor a
	ld (la603),a
	dec a
	ld (la606),a
	ld (la607),a
	ld a,(la605)
	dec a
	ld (la604),a
	ret
.la67a
	ld ix,laa77
	ld b,#08
.la680
	push bc
	call la68c
	inc ix
	inc ix
	pop bc
	djnz la680
	ret
.la68c
	ld a,(ix+#00)
	inc a
	ret z
	ld e,(ix+#01)
	ld hl,l9bd5
	call la795
	ld a,(hl)
	ld d,#00
	add hl,de
	add hl,de
	inc hl
	ld d,a
	and #7f
	inc e
	cp e
	jr nz,la6ab
	ld (ix+#00),#ff
.la6ab
	ld (ix+#01),e
	call la798
	rl d
	ex de,hl
	ld hl,laa71
	jr nc,la6c8
	ld a,d
	rrca
	rrca
	rrca
	rrca
	and #0f
	cp (hl)
	ret c
	ld (hl),a
	ld (laa6b),de
	ret
.la6c8
	ld a,d
	and #0f
	dec hl
	cp (hl)
	ret c
	ld (hl),a
	ld a,e
	ld (laa6d),a
	rrca
	and #70
	ld e,a
	ld a,d
	rrca
	rrca
	rrca
	rrca
	and #0f
	or e
	ld e,a
	call la792
	ld (laa69),hl
	ld a,e
	cp #7f
	ld a,#2a
	jr z,la6ef
	ld a,#28
.la6ef
	ld (laa6e),a
	ret
.la6f3
	ld a,(la603)
	and a
	ret z
	ld hl,la604
	ld a,(la605)
	inc (hl)
	cp (hl)
	call z,la7f5
	ld ix,la96b
	ld iy,laa67
	ld b,#03
.la70d
	bit 7,(ix+#00)
	jr nz,la76d
	ld a,#0b
	sub b
	ld (la743),a
	add a
	sub #10
	ld (la769),a
	inc a
	ld (la76c),a
	ld a,(ix+#01)
	cp #0a
	jr nc,la741
	add a
	add a
	add a
	ld d,a
	ld hl,la017
	ld a,(la605)
	cp #09
	ld a,(la604)
	jr c,la73c
	rra
.la73c
	add d
	call la79e
	ld a,(hl)
.la743 equ $ + 2
.la741
	ld (iy+#00),a
	ld a,(ix+#02)
	add a
	add a
	add a
	ld d,a
	ld hl,la067
	ld a,(la604)
	and #07
	add d
	call la79e
	ld a,(hl)
	bit 7,(ix+#03)
	jr z,la775
	add (ix+#00)
	ld (ix+#00),a
	call la792
.la769 equ $ + 2
.la767
	ld (iy+#00),l
.la76c equ $ + 2
	ld (iy+#00),h
.la76d
	ld de,#000c
	add ix,de
	djnz la70d
	ret
.la775
	ld d,a
	ld a,(ix+#00)
	call la792
	ld a,d
	add a
	add a
	ld d,h
	ld e,l
.la781
	bit 3,d
	jr nz,la78d
	srl a
	rl e
	rl d
	jr la781
.la78d
	call la79e
	jr la767
.la792
	ld hl,la9bf
.la795
	call la79d
.la798
	ld a,(hl)
	inc hl
	ld h,(hl)
	ld l,a
	ret
.la79d
	add a
.la79e
	add l
	ld l,a
	adc h
	sub l
	ld h,a
	ret
.la7a4
	ld hl,la96b
	ld de,la96c
	ld bc,#0023
	ld (hl),#00
	ldir
	ld a,(la608)
	ld hl,l9ac7
	call la795
	push hl
	pop ix
	ld bc,#0006
	add hl,bc
	ld (la98f),hl
	ex de,hl
	ld l,(ix+#00)
	ld h,(ix+#01)
	ld (la823),hl
	add hl,de
	ld (la994),hl
	ld l,(ix+#02)
	ld h,(ix+#03)
	add hl,de
	ld (la991),hl
	ld l,(ix+#04)
	ld h,(ix+#05)
	add hl,de
	ld (la996),hl
	xor a
	ld (la993),a
	ld (la998),a
	ld (la999),a
	ld (la82a),a
	jr la82e
.la7f5
	ld a,(la609)
	inc a
	jr nz,la805
	ld (la609),a
	ld de,#ffff
	ld (la606),de
.la805
	ld (hl),#00
	ld hl,(la606)
	inc hl
.la80b
	ld (la606),hl
	ld a,h
	or l
	jr z,la7a4
	srl h
	rr l
	srl h
	rr l
	srl h
	rr l
	ld d,h
	ld e,l
	add hl,hl
	add hl,de
.la823 equ $ + 1
	ld de,#0000
	sbc hl,de
	jr z,la80b
.la82a equ $ + 1
	ld a,#00
	inc a
	and #07
.la82e
	jr nz,la847
	ld iy,la98f
	ld hl,la971
	call la92d
	ld hl,la97d
	call la92d
	ld hl,la989
	call la92d
	xor a
.la847
	ld (la82a),a
	ld ix,la96b
	ld b,#03
.la850
	push bc
	push ix
	ld a,b
	rra
	ld a,#30
	jr nc,la85a
	xor a
.la85a
	ld (la88a),a
	pop hl
	ld bc,#000b
	add hl,bc
	ld bc,#0600
.la865
	call la955
	djnz la865
	ld a,c
	bit 5,a
	jr nz,la8d1
	and #0f
	cp #09
	jr c,la877
	sub #10
.la877
	add (ix+#05)
	ld b,#30
	cp b
	jr c,la884
	add b
	jr c,la884
	sub #60
.la884
	ld (ix+#05),a
	add #0c
.la88a equ $ + 1
	cp #00
	jr c,la88f
	add #0c
.la88f
	ld (ix+#00),a
	bit 4,c
	jr z,la8c8
	ld b,#02
	call la907
	cp #01
	jr c,la8bc
	jr z,la8fc
	cp #02
	jr z,la8b4
	ld b,#04
	call la907
	ld (ix+#02),a
	cp #05
	ccf
	sbc a
	ld (ix+#03),a
.la8b4
	ld b,#04
	call la907
	ld (ix+#04),a
.la8bc
	ld l,(ix+#01)
	ld h,(ix+#04)
	ld (ix+#04),l
	ld (ix+#01),h
.la8c8
	ld bc,#000c
	add ix,bc
	pop bc
	djnz la850
	ret
.la8d1
	bit 3,a
	jr nz,la8e7
	and #07
	ld d,a
	ld b,#02
	push bc
	call la907
	pop bc
	add a
	add a
	add a
	or d
	add #09
	jr la877
.la8e7
	rra
	xor c
	and #08
	xor c
	and #0f
	cp #0f
	jr z,la8f5
	call la9a0
.la8f5
	ld a,#80
	ld (ix+#00),a
	jr la8c8
.la8fc
	ld a,(ix+#01)
	dec a
	and #0f
	ld (ix+#01),a
	jr la8c8
.la907
	push hl
	ld c,#00
	ld a,(la999)
.la90d
	and a
	jr z,la91f
	dec a
.la911
	ld hl,la99f
	call la955
	djnz la90d
	ld (la999),a
	ld a,c
	pop hl
	ret
.la91f
	ld iy,la994
	ld hl,la99a
	call la92d
	ld a,#2f
	jr la911
.la92d
	push bc
	push de
	ld e,(iy+#00)
	ld d,(iy+#01)
	ld a,(de)
	inc de
	ld (iy+#00),e
	ld (iy+#01),d
	ld c,a
	ld b,#00
	sla c
	rl b
	ex de,hl
	ld h,b
	ld l,c
	add hl,hl
	add hl,bc
	ld bc,la0b7
	add hl,bc
	ld bc,#0006
	ldir
	pop de
	pop bc
	ret
.la955
	push hl
	rl (hl)
	dec hl
	rl (hl)
	dec hl
	rl (hl)
	dec hl
	rl (hl)
	dec hl
	rl (hl)
	dec hl
	rl (hl)
	rl c
	pop hl
	ret
.la971 equ $ + 6
.la96c equ $ + 1
.la96b
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.la97d equ $ + 2
	db #00,#00,#00,#00,#00,#00,#00,#00
.la989 equ $ + 6
	db #00,#00,#00,#00,#00,#00,#00,#00
.la991 equ $ + 6
.la98f equ $ + 4
	db #00,#00,#00,#00,#00,#00,#00,#00
.la99a equ $ + 7
.la999 equ $ + 6
.la998 equ $ + 5
.la996 equ $ + 3
.la994 equ $ + 1
.la993
	db #00,#00,#00,#00,#00,#00,#00,#00
.la99f equ $ + 4
	db #00,#00,#00,#00,#00
.la9a0
	ld (laa75),a
	ld a,#ff
	ld (laa87),a
	ld hl,laa77
	ld bc,#0002
.la9ae
	ld a,(hl)
	inc a
	jr z,la9b8
	inc hl
	inc hl
	inc c
	inc c
	jr la9ae
.la9b8
	ld d,h
	ld e,l
	inc de
	dec hl
	lddr
	ret
.la9bf
	dw #0777,#070c,#06a7,#0647
	dw #05ed,#0598,#0547,#04fc
	dw #04b4,#0470,#0431,#03f4
	dw #03bc,#0386,#0353,#0324
	dw #02f6,#02cc,#02a4,#027e
	dw #025a,#0238,#0218,#01fa
	dw #01de,#01c3,#01aa,#0192
	dw #017b,#0166,#0152,#013f
	dw #012d,#011c,#010c,#00fd
	dw #00ef,#00e1,#00d5,#00c9
	dw #00be,#00b3,#00a9,#009f
	dw #0096,#008e,#0086,#007f
	dw #0077,#0071,#006a,#0064
	dw #005f,#0059,#0054,#0050
	dw #004b,#0047,#0043,#003f
	dw #003c,#0038,#0035,#0032
	dw #002f,#002d,#002a,#0028
	dw #0026,#0024,#0022,#0020
	dw #001e,#001c,#001b,#0019
	dw #0018,#0016,#0015,#0014
	dw #0013,#0012,#0011,#0010
.laa6e equ $ + 7
.laa6d equ $ + 6
.laa6b equ $ + 4
.laa69 equ $ + 2
.laa68 equ $ + 1
.laa67
	db #00,#00,#00,#00,#00,#00,#00,#00
.laa75 equ $ + 6
.laa74 equ $ + 5
.laa71 equ $ + 2
	db #00,#00,#00,#00,#00,#00,#00,#00
.laa77
	db #ff,#ff,#ff,#ff,#ff,#ff,#ff,#ff
	db #ff,#ff,#ff,#ff,#ff,#ff,#ff,#ff
.laa87
	db #ff,#00
	
;
.init_music ; added by Megachur
;
	push af
	call la667
	pop af
	ld b,a
	ld c,a
	jp la64d
;
.game_name
	db "Hammer Boy 2",0
.game_year
	db "1991",0
.game_publisher
	db "Dinamic",0
.music_author
	db "",0
.music_comment
	db "",0

	read "music_end_v1_0.asm"
